﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcessManagers
{
    using Commands.Accounts;
    using Domain.OAuth;
    using ECommon.Components;
    using ECommon.IO;
    using ENode.Commanding;
    using ENode.Infrastructure;

    [Component]
    public class OAuthProcessManager : IMessageHandler<SignInSuccessEvent>
    {
        private ICommandService _commandService;

        public OAuthProcessManager(ICommandService commandService)
        {
            _commandService = commandService;
        }

        public Task<AsyncTaskResult> HandleAsync(SignInSuccessEvent evnt)
        {
            return null;
            //return _commandService.SendAsync(new AcceptNewSignInCommand(evnt.Account, evnt.AggregateRootId));
        }
    }
}
